
package com.market.web.action;

import org.springframework.beans.BeanUtils;

import com.market.bean.Customer;
import com.market.web.form.CustomerForm;

public class AdminCusViewAction extends BaseAction2
{
    public String execute() throws Exception
    {
        int id = (int)getLong("id");
        Customer cus = getCustomerService().FindById(id);
        CustomerForm cusf = new CustomerForm();
        BeanUtils.copyProperties(cus, cusf);
        getRequest().setAttribute("customer", cusf);
        return SUCCESS;
        //return mapping.findForward("cusinf");
    }
}
